const router = {
    '/api/example/ArrValid': {
        name: '效验数组',
        methods: 'post',
        validFormat: ['Number'],
        example: [1, 2]
    },
    '/api/example/per': { name: '权限测试接口', methods: 'post', permission: ['admin'] },
    '/api/example/test/index': { name: '默认接口', methods: 'all' },
    '/api/example/tip': { name: '默认接口', methods: 'all' },
    '/api/example/validReqData': {
        name: '数据效验及响应示例接口',
        methods: 'post',
        validFormat: {
            name: 'String',
            age: 'Number',
            grade: [Array],
            desc: 'String',
            family: [Object]
        },
        validFormatStrict: false,
        example: {
            extra: '这是一个额外参数，如果开启严格模式且带上这个参数将会不通过效验',
            name: '小蔡',
            age: 18,
            grade: [Array],
            desc: '两年半',
            family: [Object]
        },
        resExample: { msg: '', status: 1, data: 'hello!练习两年半的程序员' },
        validFormatDes: [[Object], [Object], [Object], [Object], [Object]],
        des: '详细数据效验及响应示例接口',
        header: [[Object]]
    },
    '/api/index': { name: '默认接口', methods: 'get' }
}
const apicCN = { '/api/example': '示例接口', '/api/example/test': '示例测试接口' }
module.exports = { apicCN, router }